package com.ls.es.controller;

import com.ls.es.service.EsServcie;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @description:
 * @Author liu Weidong
 * @Email:
 * @Date: 2024/7/6 17:10
 * @Version 1.0
 */
@RestController
public class EsController {

    @Resource
    private EsServcie esServcie;

    @GetMapping("/batch")
    public String bactch(){
        esServcie.batch();
        return "ok";
    }

}
